/*
 * @Description:检验员管理
 */
import request from "@/api/index"
export default {
    //添加
    add(data) {
        return request.post(`/check/checkStaff/add`, {  ...data })
    },
    //编辑
    edit(data) {
        return request.post(`/check/checkStaff/edit`, {  ...data })
    },
    //批量删除
    delList(list) {
        return request.get(`/check/checkStaff/delListById?idList=${list}`)
    },
    //条件查询
    queryByCondition(data) {
        return request.post(`/check/checkStaff/queryByCondition`, {  ...data })
    },
    //分页查询
    queryPageByCondition(data) {
        data.entity = !data.entity ? {} : data.entity
        data.entity.breedType = sessionStorage.breedType;
        return request.post(`/check/checkStaff/queryPageByCondition`, { ...data })
    },
};
